picture: Unref previous paintable
authorTimm Bäder <mail@baedert.org>
Sat, 13 Jul 2019 07:38:28 +0000 (09:38 +0200)
committerTimm Bäder <mail@baedert.org>
Sat, 13 Jul 2019 07:38:28 +0000 (09:38 +0200)
We were leaking all of them.

gtk/gtkpicture.c

index 1ae70f7cde659b16ce02c672d7818bb6e80807ff..125d37c60b2c28d4ca606f1b1eadaa0877beadd9 100644 (file)
@@ -809,6 +809,8 @@ gtk_picture_set_paintable (GtkPicture   *self,
         g_signal_handlers_disconnect_by_func (self->paintable,
                                               gtk_picture_paintable_invalidate_size,
                                               self);
+
+      g_object_unref (self->paintable);
     }
 
   self->paintable = paintable;